<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>17.使用栅格区域部署元素</title>
  <style>
    .container {
      margin: 0 auto;
    }

    div {
      background-color: blueviolet;
      background-clip: content-box;
      box-sizing: border-box;
      border: solid 2px #ddd;
      color: white;
    }
    div:nth-child(1) {
      grid-area: r 2/c 2/r 3/c 3;
    }
    .row {
      display: grid;
      grid-template-rows: repeat(3, [r]1fr);
      grid-template-columns: repeat(3, [c]1fr);
      width: 300px;
      height: 300px;
      border: solid 2px #ddd;

    }
  </style>
</head>

<body>
  <article class="container">
    <section class="row">
      <div>1</div>
      
    </section>
  </article>
</body>

</html>